module.exports = function(sequelize, DataTypes) {
    var Category = sequelize.define('Category', {
        _id: {
            type: DataTypes.INTEGER(11),
            allowNull: false,
            primaryKey: true
        },
        desc: {
            type: DataTypes.TEXT,
            allowNull: false,
            field: "desc",
            comment: "描述"
        },
        img: {
            type: DataTypes.TEXT,
            allowNull: false,
            field: "img",
            comment: "图片"
        }
    }, {
        timestamps: false,
        tableName: 'category'
    });
    return Category;
}